package com.ns.scs.sms.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.bo.BaseBO;
import com.ns.core.utils.StpUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 消息用户
 *
 * @author lw
 * @since 2024-11-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
public class SmsUserBO extends BaseBO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 模板id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long templateId;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 所属服务
     */
    private Long sid = StpUtil.getSid();

    /**
     * 所属租户
     */
    private Long rid = StpUtil.getRid();
}
